#include <fstream>

int main(int argc, char** argv)
{
   std::ifstream fin("in.txt");
   std::ofstream fout("out.txt");
   int n = 0;
   int dx[4] = {1, 0, -1, 0};
   int dy[4] = {0, 1, 0, -1};
   int x = 0;
   int y = 0;
 
   fout << x << " " << y << "\n";

   fin >> n;
   for (int i = 0; i < n - 1; i++)
   {
      x += (i / 2 + 1) * dx[i % 4];
      y += (i / 2 + 1) * dy[i % 4];
      fout << x << " " << y << "\n";
   }

   fin.close();
   fout.close();
   return 0;
}